﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WarriorRush.GameDynamics.Effects
{
    public class Dazing : GameEffect
    {
        public Dazing() : base(false)
        {
            Type = EffectType.Dazed;
        }

        public override void ModifyStats(CharacterClass character)
        {
            character.Stats.AttackStat.Modify(-Power);
            base.ModifyStats(character);
        }

        public override void RevertStats(CharacterClass character)
        {
            character.Stats.AttackStat.Revert(-Power);
            base.RevertStats(character);
        }

        public override GameEffect GetInstance(int power)
        {
            return new Dazing() { Power = power };
        }
    }
}
